package com.atmc.mapper;

import com.atmc.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//@Mapper
@Component
public interface UserMapper {
    List<User> selectAll();
    User selectOne();
    int updateOne(User user);
    int deleteOne(@RequestParam("user_id") Integer user_id);
    int insertOne(User user);
}
